package com.lzy.shops.service.impl;

import com.lzy.shops.bean.Goods;
import com.lzy.shops.mapper.ShowGoodsMapper;
import com.lzy.shops.service.ShowGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShowGoodsServiceImpl implements ShowGoodsService {

    @Autowired
    private ShowGoodsMapper mapper;

    @Override
    public List<Goods> findAll(String type,Integer start, Integer end) {
        return mapper.findAll(type,start, end);
    }

    @Override
    public Goods findById(Integer id) {
        return mapper.findById(id);
    }
}
